home *** CD-ROM | disk | FTP | other *** search
- E
- E *************************************************************************
- E * This is the BBSCONN Script *
- E * This Script establishes contact with the BBS via an intermediate *
- E * Node. The Node is called, then that Node connects to the BBS. *
- E * *
- E * Once it has established BBS contact, the Script returns to paKet. *
- E * *
- E * This Script may be used as the Connect Script for Mail Forwarding *
- E * because as soon as we are connected to the BBS, paKet can then *
- E * proceed to perform standard Mail Forwarding protocol with that BBS. *
- E *************************************************************************
-
- * I am assuming for this sample Script that we are connecting to our BBS
- * via an intermediate Node. That is, we establish a connection with the
- * intermediate Node, and then issue a second connect command to reach our
- * BBS from there.
-
- * Send a BREAK to the TNC to get into Command Mode
- B
-
- * Then wait for the "cmd:" prompt. Quit if not received within 5 seconds.
- w 5,cmd:
- q
-
- * Now, connect to the intermediate Node.
- * In my sample I assumed the callsign of the Node is VK2NOD and that I am
- * calling that Node via a digipeater VK2RPT. Of course you should change
- * the following command to specify the callsign(s) you need.
- S CONNECT VK2NOD via VK2RPT
-
- * ... and wait up to 60 seconds for the TNC's CONNECTED message
- w 60,CONNECTED to VK2NOD
-
- * If connection not established within 60 seconds, give up.
- G noanswer
- E
- E *** We are now connected to the Node, VK2NOD ***
- E
-
- * Now that we are in contact with the Node, we can tell it to attempt a
- * connection to our BBS.
- * Don't forget to change the following command to use YOUR BBS's callsign.
- * (Sometimes the Node requires a port number as well, in which case the
- * command might look something like:
- * S CONNECT 1 VK2BBS
- * The sysop at the Node can advise you on this.)
- S CONNECT VK2BBS
-
- W 60,Connected to VK2BBS
- g noanswer
- R 0
-
- *****************************************************************************
- * If you use this Script to establish contact with the BBS for
- * Mail Forwarding, paKet simply requires you to establish the
- * connection with the desired BBS, then return with a Return Code
- * of 0.
- *
- * If a successful connection is not made, return with Return Code -1
- * as shown here.
- *****************************************************************************
- :noanswer
- E We did not establish the connection with the BBS
- R -1
-